package models

import (
"github.com/astaxie/beego/orm"
)

//初始化数据库配置
func init() {
	orm.Debug = true // 是否开启调试模式 调试模式下会打印出sql语句
	//orm.RegisterDataBase("default", "mysql", "root:Askme#268200@tcp(47.105.190.126:3306)/FindMe?charset=utf8", 30)
	orm.RegisterDataBase("default", "mysql", "root:Askme#268200@tcp(192.168.1.109:3306)/FindMe?charset=utf8&loc=Asia%2FShanghai", 30)
	orm.RegisterModel(new(LabelInfo),new(AlarmrecordInfo),new(FileInfo),new(CompanyInfo))
}

